package com.xdclass.mysql.mapper.custom;

import com.xdclass.mysql.model.domain.UserModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomUserMapper {

    UserModel selectByNameAndCompany(String name,String company);

    /**
     * 批量插入
     * @param userList
     */
    void batchInsert(@Param("userList") List<UserModel> userList);

    UserModel selectById(Long id);
}